#ifndef THREADMGR_H_INCLUDED
#define THREADMGR_H_INCLUDED
#include <boost/thread.hpp>
#include <iostream>
#include <string>

#include <map>
class Threadable;

class ThreadMgr{
public:

    static ThreadMgr * getinstance();

    static void svc(int id);


    void activate(int id);

    void registerThread(Threadable *);

    ~ThreadMgr();

private:
    ThreadMgr();

    static ThreadMgr * m_singleMgr;


    static std::map<int , Threadable *> threads;


};

#endif // THREADMGR_H_INCLUDED
